﻿using System.ComponentModel;
using System.Web.Services;
using Kimgwajang.MidnightPeach.Biz;

namespace MidnightPeach.Service
{
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class MidnightPeachService : WebService
    {
        [WebMethod]
        public void ReportException(string message, string stackTrace)
        {
            ExceptionReport report = ManagerRepository.ExceptionReport.Create();
            report.Message = message;
            report.StackTrace = stackTrace;

            ManagerRepository.ExceptionReport.Insert(report);
        }
    }
}